﻿import request from '@/utils/request';
// list
export const xuansuxinxiList = (params) => {
    return request({
        url: '/xuansuxinxi/page',
        method: 'post',
        data: params,
    })
};
export const xuansuxinxiDetail = (id) => {
    return request({
        url: '/xuansuxinxi/'+id,
        method: 'get',
    })
};
// add
export const xuansuxinxiSave = (params) => {
    return request({
        url: '/xuansuxinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const xuansuxinxiEdit = (params) => {
    return request({
        url: '/xuansuxinxi',
        method: 'put',
        data: params,
    })
};
// delete
export const xuansuxinxiDelete = (id) => {
    return request({
        url: '/xuansuxinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const xuansuxinxiDeleteList = (xuansuxinxis) => {
    return request({
        url: '/xuansuxinxi/deleteList',
        data:{list:xuansuxinxis},
        method: 'post',
    })
};
// all
export const xuansuxinxiAllList = () => {
    return request({
        url: '/xuansuxinxi',
        method: 'get',
    })
};

